package com.tools.scanner

import android.app.Application
import com.tools.scanner.utils.AppUtil
import com.tools.scanner.utils.NativeUtil
import com.tools.scanner.viewmodel.DataViewModel

class QrApp : Application() {

    companion object {
        lateinit var app: Application
    }

    override fun onCreate() {
        super.onCreate()
        app = this

        if (AppUtil.isInMainProcess()) {
            NativeUtil.init()
            DataViewModel.requestAppSetting()
        }
    }

}